package edu.sctu.practice.class01.renpingan.assign03.geometricobject;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Circle extends GeometricObject {
    public float area;
    public float perimeter;
    public String color;

    public Circle(int r, String color) {
        super(r, color);
    }

    @Override
    public float findArea() {
        area = (float) (Math.PI * r * r);

        return area;
    }

    @Override
    public float findPerimeter() {
        perimeter = (float) (2 * Math.PI * r);
        return perimeter;
    }
}
